<?php
/**
 * Created by PhpStorm.
 * User: wodrow
 * Date: 19-2-27
 * Time: 下午4:54
 */

namespace common\models;

/**
 * Class EdiviCreditOrderUsers
 * @package common\models
 *
 * @property EdiviCreditOrder $ediviCreditOrder
 * @property EdiviCreditOrderUsersPics[] $ediviCreditOrderUsersPics
 */
class EdiviCreditOrderUsers extends \common\models\base\EdiviCreditOrderUsers
{
    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrder()
    {
        return $this->hasOne(EdiviCreditOrder::className(), ['id' => 'edivi_credit_order_id']);
    }

    /**
     * @return \yii\db\ActiveQuery
     */
    public function getEdiviCreditOrderUsersPics()
    {
        return $this->hasMany(EdiviCreditOrderUsersPics::className(), ['edivi_credit_order_user_id' => 'id']);
    }
}